import React, { memo } from 'react';

import style from './index.less';

const RejectTabWrapper = props => {
    const { title, tabType, tableDisplayLabel, labelWhichShowFlag, labelFlagIsShow } = props;
    return (
        <span style={{ position: 'relative' }}>
            {title}
            {tableDisplayLabel &&
            (Number(tabType) === labelWhichShowFlag || labelWhichShowFlag === 3) &&
            labelFlagIsShow === 1 ? (
                <em className={style.disMissLabel}>{tableDisplayLabel}</em>
            ) : null}
        </span>
    );
};

export default memo(RejectTabWrapper);
